<div class="main-sidebar-menu-header">
	<?php if (isset($this->sidebarTitle)): ?>
		<h1>
			<?php echo (isset($this->sidebarTitle) ? $this->sidebarTitle : ucwords($this->id)); ?>		
		</h1>
	<?php elseif (!empty($this->sidebarHeaderView)): ?>
		<?php $this->renderPartial($this->sidebarHeaderView); ?>
	<?php endif; ?>
</div>
<?php if (!empty($this->menu)): ?>
	<div class="main-sidebar-menu">
		<?php
		$this->widget('zii.widgets.CMenu', array(
			'encodeLabel' => false,
			'items' => (!empty($this->menu) ? $this->menu : array()),
			'htmlOptions' => array(
				'class' => 'menu'
			)
		));
		?>
	</div>
<?php endif; ?>
<?php if (!empty($this->sidebarView)): ?>
	<div class="main-sidebar-view">
		<?php $this->renderPartial($this->sidebarView); ?>
	</div>
<?php endif; ?>